# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-mgba
pkgver=0_git20220211
pkgrel=0
_commit="5d48e0744059ebf38a4e937b256ffd5df4e0d103"
arch="all"
url="https://github.com/libretro/mgba"
pkgdesc="Nintendo Game Boy Advance core"
license="MPL-2.0"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/mgba/archive/$_commit.tar.gz"
builddir="$srcdir/mgba-$_commit"
options="!check" # No tests

build() {
	make
}

package() {
	install -Dm644 mgba_libretro.so "$pkgdir"/usr/lib/libretro/mgba_libretro.so
}

sha512sums="
cace1c0d7f40f979917bf9c754779e89c01bcf7feb25b28b5113c83613ee55942926956bd2a64535d4a83b295a3f5908400027e466fb3dfdc4fd9fbe1b6ac2b2  libretro-mgba-5d48e0744059ebf38a4e937b256ffd5df4e0d103.tar.gz
"
